<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <title>Welcome to iMua.com</title>
    </head>
    <body>

    <p><?= anchor('test', 'Back') ?></p>

    <h1><?= $target ?></h1>
    
    <h3>TOTAL DEALS = <?= sizeof($deals) ?></h3>

    <?php $i = 1 ?>
    
    <?php foreach ($deals as $deal): ?>
    
    No <?= $i++ ?><br/>
    Title : <?= $deal->title ?> <br/>
    URL : <?= $deal->urlDetail ?> <br/>
    Actual price : <?= $deal->priceActual ?> <br/>
    Original price : <?= $deal->priceOriginal ?> <br/>
    Percent : <?= $deal->percent ?> <br/>
    Image : <?= $deal->urlImage ?> <br/>
    Bought : <?= $deal->peopleBought ?> <br/>
    <br/>
    
    <?php endforeach; ?>

    </body>
</html>